﻿using System;
using System.Linq;
namespace HitchHikersGuideToTheGalaxy.Models
{
    public interface IUserInfoRepository
    {
        // Default Add, Delete and save actions
        void Add(UserInfo userInfo);
        void Delete(UserInfo userInfo);
        void Save();

        // Querys
        IQueryable<UserInfo> FindAllUserInfos();
        IQueryable<User> FindAllUsers();
        UserInfo GetUserInfo(int id);
        UserInfo GetUserInfo(string username);
        
    }
}
